package com.example.kotlintest.extends.extendTest

//Kotlin学习系列之：Kotlin的构造函数
//https://blog.csdn.net/xlh1191860939/article/details/79412319

class Dog(val legs: Int): Animal("Dog") {
//    var legs:Int=0;
    override fun eat() {
        println("$name eat meat")
    }

//   constructor(legs:Int) : this() {
//   this.legs=legs
//   }
}